package day1128;

import java.util.Scanner;

public class T6 {
    public static void main(String[] args) {
        //1.
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个int数值，表示今年的年份:");
        int year=sc.nextInt();
        //2.
        if(year%400  ==  0  ||  (year%4  ==  0 && year%100  !=  0) ){
            System.out.println("今年是闰年");
        }else{
            System.out.println("今年不是闰年");
        }



        int i=46;
        int rs= i++;
        System.out.println(rs);//46
        System.out.println(i);//47
        //先将i变量的值赋值给i++，让后让x自增1
        int i3=5;
        int rs3=i3--;
        System.out.println(rs3);//5
        System.out.println(i3);//4


        int j=53;
        int rs2=++j;
        System.out.println(rs2);//54
        System.out.println(j);//54
        //先让j自增1， 然后将新值赋值给++j



        int h=7;
        int rs4=--h;
        System.out.println(rs4);//6
        System.out.println(h);//6




    }
}
